<template>
  <div id="app">
    <Footernav v-if="ishow"></Footernav> 
    <router-view />
  </div>
</template>
<script>
import Footernav from './components/Footernav'
import { mapState } from 'vuex'
export default {
  data() {
    return {
     
    }
  },
  components: {
    Footernav,
  },
  mounted() {
    // console.log(this.$store.state.ishow)
    console.log('进入')
  },
  computed: {
    ...mapState(["ishow"])
  },

}
</script>
<style lang="less">
* {
  margin: 0;
  padding: 0;
}
body {
  width: 100%;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
</style>
